#{extends 'main.html' /}
#{set title:'Confirm ' + hotel.name + ' booking' /}
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>
<body> 
	#{form @confirmBooking(hotel.id)}
	    <p>
	        <strong>院线名称:</strong> ${hotel.name}
	    </p>
	    <p>
	        <strong>地址:</strong> ${hotel.address}
	    </p>
	    <p>
	        <strong>省市:</strong> ${hotel.city}
	    </p>
	    <p>
	        <strong>州区:</strong> ${hotel.state}
	    </p>
	    <p>
	        <strong>编号:</strong> ${hotel.zip}
	    </p>
	    <p>
	        <strong>国家:</strong> ${hotel.country}
	    </p>
	    <p>
	        <strong>票价:</strong> ${hotel.price}
	    </p>
	    <p>
	        <strong>坐垫:</strong> ${booking.beds}
	        <input type="hidden" name="booking.beds" value="${booking.beds}">
	    </p>
	    <p>
	        <strong>总数:</strong> ${booking.total.formatCurrency('USD')}
	    </p>
	    <p>
	        <strong>开始日期:</strong> ${booking.checkinDate.format('yyyy-MM-dd')}
	        <input type="hidden" name="booking.checkinDate" value="${booking.checkinDate.format('yyyy-MM-dd')}">
	    </p>
	    <p>
	        <strong>结束日期:</strong> ${booking.checkoutDate.format('yyyy-MM-dd')}
	        <input type="hidden" name="booking.checkoutDate" value="${booking.checkoutDate.format('yyyy-MM-dd')}">
	    </p>
	    <p>
	        <strong>信用卡卡号:</strong> ${booking.creditCard}
	        <input type="hidden" name="booking.creditCard" value="${booking.creditCard}">
	        <input type="hidden" name="booking.creditCardName" value="${booking.creditCardName}">
	        <input type="hidden" name="booking.creditCardExpiryMonth" value="${booking.creditCardExpiryMonth}">
	        <input type="hidden" name="booking.creditCardExpiryYear" value="${booking.creditCardExpiryYear}">
	    </p>
	    
	    <p class="buttons">
	        <input type="submit" value="确定" name="confirm"> 
	        <input type="submit" value="修改" name="revise"> 
	        <a href="@{show(hotel.id)}">取消</a>    
	    </p>
	#{/form}
</body>